

package com.hazelcast.jet.core;

import com.hazelcast.jet.JetException;
import com.hazelcast.jet.Util;

import java.io.Serial;

/**
 * Thrown when a job could not be found on the master node
 *
 * @since Jet 3.0
 */
public class JobNotFoundException extends JetException {

    @Serial
    private static final long serialVersionUID = 1L;

    public JobNotFoundException(long jobId) {
        super("Job with id " + Util.idToString(jobId) + " not found");
    }

    public JobNotFoundException(String message) {
        super(message);
    }

    public JobNotFoundException(String message, Throwable cause) {
        super(message, cause);
    }
}
